
import type { GoodsResult } from "@/types/goods"
import { http } from "@/utils/http"


/**
 * 商品信息
 * @param id 商品id
 * @returns
 */
export const getGoodsByIdAPI = (id: string) => {
  return http<GoodsResult>({
    method: 'GET',
    url: '/goods',
    data: {
      id
    },
  })
}
